package rpc

import (
	"gitee.com/ameise84/e3dcs/internal/message"
)

var _gService service

var onMsgRecvToPost func(*message.Message)

func Start(opts *Options) (string, error) {
	return _gService.start(opts)
}

func Stop() {
	_gService.stop()
}

func SetMsgOnRecvFunc(f func(*message.Message)) {
	onMsgRecvToPost = f
}
